import java.util.Arrays;

/**
 * @ Author     ：侯耀祖
 * @ Description：
 */
public class maxmiumScore {
    public int maxmiumScore(int[] cards, int cnt) {
        Arrays.sort(cards);
        int sum = 0;
        for (int i = cards.length-1; i >= cards.length-cnt; i--){
            sum += cards[i];
        }
        if (sum % 2 == 0){
            return sum;
        }
        return 0;
    }
}
